﻿/*****************************************************************************  

 Version: 0.1
 Website: http://www.visuagile.com/
 
 Copyright (c) Yoganand R. All rights reserved.
 For continued development and updates, visit http://yogsbreath.net
 
 ******************************************************************************/

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using VisualAgile.Model;

namespace VisualAgile.DTO.Mappers
{
    public class ProjectDTOMapper:BaseDTOMapper
    {
        public static ProjectDTO MapToDTO(Project  model )
        {
            ProjectDTO dto = new ProjectDTO();
            dto.ID = model.ID;
            dto.Name = model.Name;            
            return dto;
        }
        public static Project MapFromDTO(ProjectDTO dto)
        {
            Project project = new Project();
            project.ID = dto.ID;
            project.Name = dto.Name;
            project.CreateTime = DateTime.Now;            
            return project;
        }
    }
}
 